import { http } from '@/utils/http'

//获取医生科室列表
export const getDepAllList = () => {
  return http.get('/dep/all')
}

//生成预支付订单
export const getConsultOrderPre=(type,option={})=>{
	return http.get('/patient/consult/order/pre',{params:{type,...option}})
}

//生成待支付订单
export const createOrderPre=(data)=>{
	return http.post('/patient/consult/order',data)
}

//订单支付接口
export const getConsultPay=(data)=>{
	return http.post('/patient/consult/pay',data)
}

//查询订单详情信息-找医生、极速问诊和开药问诊
export const getOrderDetail=(orderId)=>{
	return http.get('/patient/consult/order/detail',{params:{orderId}})
}

